<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>02</title>
</head>
<body>
    <div id="root">
        {{ person.name }}
    </div>
</body>
<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    var person = {
        name: '小明',
        age: 18,
    };

    var vm = new Vue({
        el: '#root',
        data: {
            key: '',
            person: person,
        },
        created: function() {
            alert('我加载完了！');
        },
    });
</script>
</html>